let list
export default list = [
  {
    path: '/',
    name: 'welcome',
    meta: { title: '欢迎' },
    component: () => import('@/views/layout/MainLayout.vue'),
    redirect: '/user',
    children: [
      {
        path: 'user',
        name: 'user',
        meta: { title: '当前用户', icon: 'el-icon-house' },
        component: () => import('@/views/user/index'),
      },
      {
        path: 'userManage',
        name: 'userManage',
        meta: { title: '学院管理', icon: 'el-icon-user', auth: true },
        component: () => import('@/views/collegeManage/index'),
      },
      {
        path: 'departmentManage',
        name: 'departmentManage',
        meta: { title: '专业管理', icon: 'el-icon-office-building', auth: true },
        component: () => import('@/views/majorManage/index'),
      },
      {
        path: 'classManage',
        name: 'classManage',
        meta: { title: '班级管理', icon: 'el-icon-connection', auth: true },
        component: () => import('@/views/classManage/index'),
      },
      {
        path: 'teacherManage',
        name: 'teacherManage',
        meta: { title: '教师管理', icon: 'el-icon-document', auth: true },
        component: () => import('@/views/teacherManage/index'),
      },
      {
        path: 'studentManage',
        name: 'studentManage',
        meta: { title: '学生管理', icon: 'el-icon-tickets', auth: true},
        component: () => import('@/views/studentManage/index'),
      },
      {
        path: 'groupManage',
        name: 'groupManage',
        meta: { title: '答辩小组管理', icon: 'el-icon-document-copy', auth: true},
        component: () => import('@/views/groupManage/index'),
      },
      {
        path: 'newManage',
        name: 'newManage',
        meta: { title: '小组信息发布', icon: 'el-icon-document-copy',auth: true},
        component: () => import('@/views/newManage/index'),
      },
      {
        path: 'subjectManage',
        name: 'subjectManage',
        meta: { title: '选题管理', icon: 'el-icon-document-copy'},
        component: () => import('@/views/subjectManage/index'),
      },
      {
        path: 'scoreStudentManage',
        name: 'scoreStudentManage',
        meta: {title: '查看已选课题', icon: 'el-icon-document'},
        component: () => import('@/views/scoreStudentManage/index'),
      },
      {
        path: 'scoreTeacherManage',
        name: 'scoreTeacherManage',
        meta: {title: '课题管理', icon: 'el-icon-document',auth: true},
        component: () => import('@/views/scoreTeacherManage/index'),
      },
      {
        path: 'studentnewsManage',
        name: 'studentnewsManage',
        meta: {title: '小组消息', icon: 'el-icon-document'},
        component: () => import('@/views/studentnewsManage/index'),
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    meta: { title: 'login' },
    component: () => import('@/views/login/index'),
  },
]
